package com.duan.laugh.common.mybatisplus.config;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.annotation.Validated;

import java.util.ArrayList;
import java.util.List;

/**
 * 租户配置
 *
 * @author duanjw
 */
@Data
@Validated
@Configuration
@ConfigurationProperties(prefix = "mybatis-plus.tenant")
public class TenantConfigProperties {
    /**
     * 租户列名称
     */
    private String column = "tenant_id";

    /**
     * 多租户的数据表集合
     */
    private List<String> ignoreTables = new ArrayList<>();
}
